home *** CD-ROM | disk | FTP | other *** search
- Path: river.tay.ac.uk!insc3npt
- From: insc3npt@river.tay.ac.uk (N Thomson)
- Newsgroups: comp.lang.c
- Subject: [Q] curses wgetch returns incorrent value.
- Message-ID: <1996Mar20.194836.145@river.tay.ac.uk>
- Date: 20 Mar 96 19:48:36 GMT
- Reply-To: N.THOMSON@BCS.ORG.UK
- Organization: University of Abertay Dundee
-
- I am using DEC C on a DEC Alpha AXP running OpenVMS.
-
- I am writting a program which uses curses to control screen output and I am
- having a bit of a problem with it.
-
- According to some code I have seen the wgetch(window) function (where window is
- a pointer to a window) should read in a character and echo it to the specified
- window. Also if I use the crmode() function it is not necessary to press
- return.
-
- However when I do this I always get the same code for the input no matter what
- the character is.
-
- The code looks something like this:
-
- .
- .
- .
- win1=newwin(1,80,23,0) ;
- .
- .
- while(1) {
- c=wgetch(win1) ;
- switch(c) {
- .
- .
- .
- }
- .
- .
-
- Can anyone help me out here. It is very urgent.
-
- Thanx
-
- Nick.
- --
- N.Thomson@bcs.org.uk insc3npt@river.tay.ac.uk
-